package xin.tianhui.cloud.weblog.model.po;


import java.util.Collections;
import java.util.Date;
import java.util.Set;

import com.baomidou.mybatisplus.annotation.*;

import xin.tianhui.cloud.weblog.core.model.po.BaseEntityPO;


import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author junchen
 * @since 2018-04-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_article")
public class Article extends BaseEntityPO {

    private static final long serialVersionUID = 1L;

    private Integer id;
    /**
     * 标题
     */
    private String title;
    /**
     * 简短标题
     */
    @TableField("short_title")
    private String shortTitle;
    
    /**
     * 文章简介
     */
    private String summary;
    /**
     * 文章类别
     */
    @TableField("type_id")
    private Integer typeId;
    
    /**
     * 栏目
     */
    @TableField("channel_id")
    private Integer channelId;
    /**
     * 状态(0:草稿;1:发布;3:回收站;)
     */
    private Integer status;
    
    @TableField("is_recommend")
    private Integer isRecommend;
    
    /**
     * 访问量
     */
    @TableField("access_num")
    private Long accessNum;
    
    /**
     * 发布时间
     */
    @TableField("release_date")
    private Date releaseDate;
    
    @TableField(exist=false)
    private Channel channel;
    
    @TableField(exist=false)
    private ArticleTxt articleTxt;
    
    @TableField(exist=false)
    private ArticleType articleType;
    
    @TableField(exist=false)
    private Set<ArticleAttr> attrs = Collections.emptySet();
}
